home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mesolore
/
Mesolore - Disc 2.iso
/
mac
/
data
/
Atlas.dir
/
00113_Script_113
< prev
next >
Wrap
Text File
|
2001-01-26
|
3KB
|
118 lines
Global gshowGazeteer, glastcoord, glastcityname
on updateMap
if glastcoord <> "" then
findcity glastcoord, glastcityname
end if
end
on findcity which, cityname, fullname
put cityname
if "mixteca mixtecazoom" contains the frameLabel then
nothing
else
goto "mixteca"
updatestage
end if
glastcityname = cityname
glastcoord = which
if the framelabel = "mixteca" then
(sprite 2).visible = 0
updatestage
start = point(404,250)
y = value(which)/2.5 -- town location
put y
z = point(200,200) -- difference
moveto = start-(y- z)
h=getAt(moveto,1)
v=getAt(moveto,2)
if h < 411 then h = 411
if h > 412 then h = 412
if v < 189 then v = 189
if v > 312 then v = 312
setAt(moveto,1,h)
setAt(moveto,2,v)
(sprite 1).loc = moveto
updatestage
maplist = the rect of sprite 1
y = y + point(getat(maplist,1),getat(maplist,2))
(sprite 2).loc = y
(sprite 2).visible = 1
updatestage
else
(sprite 2).visible = 0
updatestage
start = point(404,250)
y = value(which) -- town location
z = point(500,500) -- difference
moveto = start-(y- z)
h=getAt(moveto,1)
v=getAt(moveto,2)
if h < 120 then h = 120
if h > 720 then h = 720
if v < -119 then v = -119
if v > 627 then v = 627
setAt(moveto,1,h)
setAt(moveto,2,v)
(sprite 1).loc = moveto
updatestage
maplist = the rect of sprite 1
y = y + point(getat(maplist,1),getat(maplist,2))
(sprite 2).loc = y
(sprite 2).visible = 1
updatestage
end if
put cityname
if the number of member cityname > 0 then
set the member of sprite 9 = cityname
else
set the member of sprite 9 = "No_Glyph"
end if
if the number of member ("t_" & cityname) > 0 then
-- beep
set the member of sprite 8 = ("t_" & cityname)
sendSprite(12, #CustomScrollbar_SwapMember,the member of sprite 8)
sendSprite(13, #CustomScrollbar_SwapMember,the member of sprite 8)
sendSprite(14, #CustomScrollbar_SwapMember,the member of sprite 8)
sendSprite(15, #CustomScrollbar_SwapMember,the member of sprite 8)
else
put fullname into field "textholder"
set the member of sprite 8 = ("textholder")
sendSprite(12, #CustomScrollbar_SwapMember,the member of sprite 8)
sendSprite(13, #CustomScrollbar_SwapMember,the member of sprite 8)
sendSprite(14, #CustomScrollbar_SwapMember,the member of sprite 8)
sendSprite(15, #CustomScrollbar_SwapMember,the member of sprite 8)
end if
updatestage
end
on setupMIAW windowName, windowFile, wType
set the fileName of window windowName to windowFile
if wtype= "void" then
set the windowType of window windowName to 2
else
set the windowType of window windowName to wType
end if
end setupMIAW
on showGazeteer
set gshowGazeteer= not gshowGazeteer
if gshowGazeteer = TRUE then
open window("Select a Site")
set the windowtype of window "Select a Site" = 4
else
close window("Select a Site")
end if
end